package org.liaohailong.lib

import com.android.build.gradle.AppExtension
import org.gradle.api.Plugin
import org.gradle.api.Project

/**
 * Describe:
 *
 *
 * @author liaohailong
 * Time: 2021/11/16 15:29
 */
class HelloWorldPlugin  : Plugin<Project> {
    override fun apply(target: Project) {

        // 1，get AGP[android gradle plugin]
        val extension = target.extensions.getByType(AppExtension::class.java)

        // 2，register Transform
        extension.registerTransform(HelloWorldTransform())
    }
}